package Server;

// A class to encapsulate customer records
public class CustRec {
  private int custID;
  private String name;
  private String address;

  public CustRec(int nID, String nName, String nAddress) {
    custID = nID;      name = nName;    address = nAddress;
  }

  int    getCustID()   { return custID; }
  String getName()     { return name; }
  String getAddress()  { return address; }

  //will need some set methods if records are to be editable.

  public String toString() {
    return String.format("%04d\t%s\t%s\n", custID, name, address);
  }
}


